package com.xbongbong.paas.pojo;

import com.xbongbong.pro.custombutton.pojo.CustomButtonActionPojo;
import com.xbongbong.paas.field.LinkListPojo;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/1/25 18:46
 * @since v1.0
 */
@Getter
@Setter
public class WorkFlowPojo {
    /**
     * 唯一键
     */
    private String id;

    /**
     * 业务类型
     * @see com.xbongbong.saas.enums.XbbRefTypeEnum
     */
    private Integer businessType;
    /**
     *
     */
    private String attr;
    /**
     * 显示值
     */
    private String value;
    /**
     * 按钮类型
     * @see com.xbongbong.saas.enums.SaasButtonEnum
     */
    private String btnType;
    /**
     * @see com.xbongbong.pro.enums.DistributorMarkEnum
     */
    private Integer distributorMark;

    /**
     * 关联列表的数据
     */
    private LinkListPojo linkList;

    /**
     * 低代码，按钮动作
     */
    private List<CustomButtonActionPojo> actionList;

    public WorkFlowPojo() {
    }

    public WorkFlowPojo(Integer businessType, String attr, String value, String btnType, Integer distributorMark, LinkListPojo linkList, List<CustomButtonActionPojo> actionList) {
        this.businessType = businessType;
        this.attr = attr;
        this.value = value;
        this.btnType = btnType;
        this.distributorMark = distributorMark;
        this.linkList = linkList;
        this.actionList = actionList;
    }
}
